import en from "./en.js";
import zh from "./zh.js";

export function KingTrans(cn_key, langType){
    let currentLanguage=en;
    switch(langType){
        case "en":
            currentLanguage = en;
            break;
        default:
            currentLanguage = zh;
            break;
    }

    let returnStr="";
    if(currentLanguage[cn_key] != null){
        returnStr = currentLanguage[cn_key];
    }
    else {
        returnStr = cn_key;
    }
    return returnStr;
}